CVE-2025-14821
Libssh: libssh: insecure default configuration leads to local man-in-the-middle attacks on windows
Description
A flaw was found in libssh. This vulnerability allows local man-in-the-middle attacks, security downgrades of SSH (Secure Shell) connections, and manipulation of trusted host information, posing a significant risk to the confidentiality, integrity, and availability of SSH communications via an insecure default configuration on Windows systems where the library automatically loads configuration files from the C:\etc directory, which can be created and modified by unprivileged local users.
INFO
Published Date :
April 7, 2026, 5:16 p.m.
Last Modified :
April 29, 2026, 12:11 p.m.
Remotely Exploit :
No
Source :
[email protected]
CVSS Scores
| Score | Version | Severity | Vector | Exploitability Score | Impact Score | Source |
|---|---|---|---|---|---|---|
| CVSS 3.1 | HIGH | 53f830b8-0a3f-465b-8143-3b8a9948e749 | ||||
| CVSS 3.1 | HIGH | [email protected] | ||||
| CVSS 3.1 | HIGH | [email protected] |
Solution
- Update libssh to the latest version.
- Restrict write access to the configuration directory.
- Avoid loading configuration from insecure locations.
- Disable automatic loading of configuration files.
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2025-14821.
| URL | Resource |
|---|---|
| https://access.redhat.com/errata/RHSA-2026:7067 | Third Party Advisory |
| https://access.redhat.com/security/cve/CVE-2025-14821 | Third Party Advisory |
| https://bugzilla.redhat.com/show_bug.cgi?id=2423148 | Issue Tracking Third Party Advisory |
| https://www.libssh.org/2026/02/10/libssh-0-12-0-and-0-11-4-security-releases/ | Release Notes |
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2025-14821 is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2025-14821
weaknesses.
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2025-14821 vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2025-14821 vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
Reanalysis by [email protected]
Apr. 29, 2026
Action Type Old Value New Value Changed CPE Configuration OR *cpe:2.3:a:libssh:libssh:-:*:*:*:*:*:*:* *cpe:2.3:a:redhat:hardened_images:-:*:*:*:*:*:*:* OR *cpe:2.3:a:redhat:hardened_images:-:*:*:*:*:*:*:* *cpe:2.3:a:libssh:libssh:*:*:*:*:*:*:*:* versions up to (excluding) 0.12.0 -
Initial Analysis by [email protected]
Apr. 28, 2026
Action Type Old Value New Value Added CVSS V3.1 AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H Added CPE Configuration OR *cpe:2.3:a:libssh:libssh:-:*:*:*:*:*:*:* *cpe:2.3:a:redhat:hardened_images:-:*:*:*:*:*:*:* Added Reference Type Red Hat, Inc.: https://access.redhat.com/errata/RHSA-2026:7067 Types: Third Party Advisory Added Reference Type Red Hat, Inc.: https://access.redhat.com/security/cve/CVE-2025-14821 Types: Third Party Advisory Added Reference Type Red Hat, Inc.: https://bugzilla.redhat.com/show_bug.cgi?id=2423148 Types: Issue Tracking, Third Party Advisory Added Reference Type Red Hat, Inc.: https://www.libssh.org/2026/02/10/libssh-0-12-0-and-0-11-4-security-releases/ Types: Release Notes -
CVE Modified by [email protected]
Apr. 25, 2026
Action Type Old Value New Value Added Reference https://access.redhat.com/errata/RHSA-2026:7067 -
New CVE Received by [email protected]
Apr. 07, 2026
Action Type Old Value New Value Added Description A flaw was found in libssh. This vulnerability allows local man-in-the-middle attacks, security downgrades of SSH (Secure Shell) connections, and manipulation of trusted host information, posing a significant risk to the confidentiality, integrity, and availability of SSH communications via an insecure default configuration on Windows systems where the library automatically loads configuration files from the C:\etc directory, which can be created and modified by unprivileged local users. Added CVSS V3.1 AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H Added CWE CWE-427 Added Reference https://access.redhat.com/security/cve/CVE-2025-14821 Added Reference https://bugzilla.redhat.com/show_bug.cgi?id=2423148 Added Reference https://www.libssh.org/2026/02/10/libssh-0-12-0-and-0-11-4-security-releases/